Skip to content

feat: safe backdated meal logging#28

Merged
maxjustships merged 1 commit into
mainfrom
feat/backdated-meal-logging
Jul 21, 2026
Merged

feat: safe backdated meal logging#28
maxjustships merged 1 commit into
mainfrom
feat/backdated-meal-logging

Conversation

@maxjustships

@maxjustships maxjustships commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • add strict local-date --date support for parsed and direct meal logs at deterministic local noon
  • return logged_at and local_date, reject malformed/impossible/future dates without writes, and add stats date
  • cover controlled-timezone boundaries, update CLI/agent guidance, and keep existing data/schema compatible

Verification

  • env -u NOMNOM_OFFLINE TZ=Asia/Almaty PYTHONPATH=. pytest -q (189 passed)
  • ruff check .
  • git diff --check
  • disposable installed-CLI smoke for parsed/direct 2026-07-20 logs plus date-scoped stats

Closes #27

@maxjustships
maxjustships merged commit 4198b80 into main Jul 21, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backdated meal logging: --date and date-scoped stats

1 participant